package tbalert.web.entity;

import java.io.Serializable;

public class Role implements Serializable {

	private static final long serialVersionUID = 3448423438726486146L;

	public Role() {
	}

	public Role(Integer id) {
		this.id = id;
	}

	public Role(String roleName, boolean addBrxx, boolean editBrxx, boolean delBrxx,
			boolean cancelBrxx, boolean addYmjg, boolean editYmjg, boolean delYmjg, boolean admin) {
		this.roleName = roleName;
		this.addBrxx = addBrxx;
		this.editBrxx = editBrxx;
		this.delBrxx = delBrxx;
		this.cancelBrxx = cancelBrxx;
		this.addYmjg = addYmjg;
		this.editYmjg = editYmjg;
		this.delYmjg = delYmjg;
		this.admin = admin;
	}

	private Integer id;
	private String roleName;

	private boolean addBrxx;
	private boolean editBrxx;
	private boolean delBrxx;
	private boolean cancelBrxx;

	private boolean addYmjg;
	private boolean editYmjg;
	private boolean delYmjg;

	private boolean admin = false;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public boolean getAddBrxx() {
		return addBrxx;
	}

	public void setAddBrxx(boolean addBrxx) {
		this.addBrxx = addBrxx;
	}

	public boolean getEditBrxx() {
		return editBrxx;
	}

	public void setEditBrxx(boolean editBrxx) {
		this.editBrxx = editBrxx;
	}

	public boolean getDelBrxx() {
		return delBrxx;
	}

	public void setDelBrxx(boolean delBrxx) {
		this.delBrxx = delBrxx;
	}

	public boolean getCancelBrxx() {
		return cancelBrxx;
	}

	public void setCancelBrxx(boolean cancelBrxx) {
		this.cancelBrxx = cancelBrxx;
	}

	public boolean getAddYmjg() {
		return addYmjg;
	}

	public void setAddYmjg(boolean addYmjg) {
		this.addYmjg = addYmjg;
	}

	public boolean getEditYmjg() {
		return editYmjg;
	}

	public void setEditYmjg(boolean editYmjg) {
		this.editYmjg = editYmjg;
	}

	public boolean getDelYmjg() {
		return delYmjg;
	}

	public void setDelYmjg(boolean delYmjg) {
		this.delYmjg = delYmjg;
	}

	public boolean getAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
	
	public boolean getExport() {
		return this.roleName.equals("汉光中心") || this.roleName.equals("管理员") ;
	}

}
